//
//  TopBarView.m
//  PictureSelector
//
//  Created by Lyy on 15/8/21.
//  Copyright (c) 2015年 Lyy. All rights reserved.
//

#import "TopBarView.h"

@interface TopBarView ()
@property (weak, nonatomic) IBOutlet UIView *topBgView;
@end

@implementation TopBarView

- (void)awakeFromNib {
    self.backgroundColor = [UIColor colorWithWhite:0 alpha:0.5];
    self.layer.masksToBounds = YES;
    self.topBgView.backgroundColor = self.backgroundColor;
}

- (IBAction)backAction:(id)sender {
    
    if ([self.delegate respondsToSelector:@selector(back)]) {
        [self.delegate back];
    }
}

- (IBAction)changePlayModeAction:(id)sender {
    if ([self.delegate respondsToSelector:@selector(playMode)]) {
        [self.delegate playMode];
    }
}

@end
